# $Id: PKGBUILD 48231 2009-10-13 17:00:49Z GunsNRose$
# Maintainer : GunsNRose<3444542@163.com>
pkgname=u-boot
#pkgver=1.3.4
pkgver=2009.11.1
pkgrel=1
pkgdesc="at91 kernel"
url="http://www.at91.com/linux4sam/bin/view/Linux4SAM/U-Boot"

#install=${pkgname}.install
groups=('embedded')
#"http://www.kernel.org/pub/linux/kernel/v2.6/linux-${pkgver}.tar.bz2" 
#"ftp://gentoo.anheng.com.cn/gentoo/distfiles/linux-${pkgver}.tar.bz2" 

#ftp://ftp.denx.de/pub/u-boot/u-boot-2009.11.1.tar.bz2
source=("ftp://ftp.denx.de/pub/u-boot/${pkgname}-${pkgver}.tar.bz2")
#source=("ftp://ftp.denx.de/pub/u-boot/${pkgname}-${pkgver}.tar.bz2" \
        #"ftp://www.at91.com/pub/uboot/u-boot-1.3.4-exp.3/${pkgname}-${pkgver}-exp.3.diff")

arch=('i686')
#makedepends=("xz-utils")

options=('emptydirs')
depends=('arm-2008q3')
#depends=('libusb')

license=('GPL')

build() {
    cd ${srcdir}/${pkgname}-${pkgver} || return 1
    #patch -Np1 -i ${srcdir}/${pkgname}-${pkgver}-exp.3.diff  || return 1
    make distclean || return 1
    make at91sam9260ek_nandflash_config || return 1
    make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- || return 1
    #make ARCH=arm oldconfig || return 1
    #make ARCH=arm INSTALL_MOD_PATH=${pkgdir} modules_install || return 1
}

#45-jlink.rules  JLinkExe  libjlinkarm.so  libjlinkarm.so.0  libjlinkarm.so.0.0  README  start

md5sums=('ca12b805b4f2bdcf15733be3fe22e896'
         '5f1038d60177661d93731fa4377584e9')
md5sums=('6086421c9e2f3a0d0dbc5f706b551dbc')
